package com.example.turnoverwarning.dto;

import com.example.turnoverwarning.entity.Shop;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Result {
    private int code;
    private String msg;
    private Object data;

    public static Result success(String msg) {
        return new Result(200, msg, null);
    }

    public static Result fail(String msg) {
        return new Result(400, msg, null);
    }

}